package sealte.wdgf.model.system;

import java.io.Serializable;
import java.util.Hashtable;
import java.util.Map;

public class SessionMapObject implements Serializable{

	private static final long serialVersionUID = 38316217315170587L;
	private Map<String,String> online;
	
	public SessionMapObject(){
		online = new Hashtable<String,String>();
	}
	
	public Map<String,String> getSessionMap(){
		return online;
	}
	
	public void add(String sessionId,String id){
		this.online.put(sessionId, id);
	}
	
	public void remove(String sessionId){
		this.online.remove(sessionId);
	}
	
	public String get(String sessionId){
		return this.online.get(sessionId);
	}
}
